<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2019/8/14
  Time: 9:46
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="f" uri="http://java.sun.com/jsp/jstl/fmt" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
    <center>
        <h2>
            该班级讲师：${gb.tb.tname},教室：${gb.rb.raddress},有${gb.sbs.size()}名学生<br>
            学生明细如下：
        </h2>

        <table border="1" rules="all">
            <tr align="center" bgcolor="aqua">
                <td>学生编号</td>
                <td>学生姓名</td>
                <td>家庭住址</td>
            </tr>
            <c:forEach var="s" items="${gb.sbs}" varStatus="a">
                <tr align="center" bgcolor="${a.index%2==0?'pink':''}">
                    <td>${s.id}</td>
                    <td>${s.sname}</td>
                    <td>${s.address}</td>
                </tr>
            </c:forEach>
        </table>
    </center>
</body>
</html>
